package com.action.gulimall.product.fegin;

import com.action.common.utils.R;
import com.action.gulimall.product.fegin.fallback.SeckillFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author sl
 * @version 1.0
 * @ClassName SeckillFeignService
 * @Deacription TODO
 * @email shilun217@qq.com
 * @date 2021/7/5/005 15:13
 **/
@FeignClient(value = "gulimall-seckill",fallback = SeckillFeignServiceFallback.class)
public interface SeckillFeignService{

    @GetMapping("/seckillsku/info/{skuId}")
    R seckillSkuInfoBySkuId(@PathVariable("skuId") Long skuId);
}
